const Options = {
    Bar: {
        xAxis: {
            type: 'category',
            data: [],
        },
        yAxis: {
            type: 'value',
        },
        series: [
            {
                data: [],
                type: 'bar',
                showBackground: true,
                backgroundStyle: {
                    color: 'rgba(180, 180, 180, 0.2)',
                },
                animationDelay: function (idx) {
                    return idx * 10;
                },
            },
        ],
        animationEasing: 'elasticOut',
        animationDelayUpdate: function (idx) {
            return idx * 5;
        },
    },
    Pie: {
        title: {
            text: '',
            subtext: '',
            left: 'center',
        },
        tooltip: {
            trigger: 'item',
        },
        legend: {
            orient: 'vertical',
            left: 'left',
        },
        series: [
            {
                name: '',
                type: 'pie',
                radius: ['40%', '70%'],
                itemStyle: {
                    borderRadius: 10,
                    borderColor: '#fff',
                    borderWidth: 2,
                },
                data: [
                    // {value: 1048, name: '搜索引擎'},
                    // {value: 735, name: '直接访问'},
                    // {value: 580, name: '邮件营销'},
                    // {value: 484, name: '联盟广告'},
                    // {value: 300, name: '视频广告'}
                ],
            },
        ],
    },
    Line: {
        xAxis: {
            type: 'category',
            data: [],
        },
        yAxis: {
            type: 'value',
        },
        series: [
            {
                data: [],
                type: 'line',
                smooth: true,
            },
        ],
    },
    Gauge: {
        series: [
            {
                type: 'gauge',
                progress: {
                    show: true,
                    width: 19, // 数据宽度
                },
                axisLine: {
                    lineStyle: {
                        width: 19, // 数据背景宽度
                    },
                },
                itemStyle: {
                    color: '#58D9F9', // 数据颜色
                    shadowColor: 'rgba(0,138,255,0.7)',
                    shadowBlur: 10,
                    shadowOffsetX: 2,
                    shadowOffsetY: 2,
                },
                splitLine: {
                    show: false,
                },
                axisTick: {
                    show: false,
                },
                axisLabel: {
                    show: false,
                },
                pointer: {
                    show: false,
                },
                detail: {
                    valueAnimation: true,
                    fontSize: 50,
                    formatter: '> {value}', // 格式
                },
                title: {
                    offsetCenter: [0, '-20%'],
                    fontSize: 30,
                },
                data: [
                    {
                        value: '70',
                        name: '成绩评定', // 名称
                    },
                ],
            },
        ],
    },
};
export default Options;
